/**
 * Created by Administrator on 2018/3/22 0022.
 */

type = function (value, row, index) {
    if (row.type == 1) {
        return '<span>商品视频</span>'
    } else {
        return '<span>好友圈动态</span>'
    }
};

operation = function (value, row, index) {

};

formatterEvent = {};


payType = function (value, row, index) {
    if (row.payMethod == 1) {
        return '<span>' + '支付宝' + '</span>'
    } else {
        return '<span>' + '微信' + '</span>'
    }
};

function queryVideo() {
    var type = $("#type").val();
    var url = $().AbsUrlParse("/web/video/queryVideo?type=" + type);
    var table = $("#table");
    table.bootstrapTable("refresh", {url: url});
}
//查询商品
bindClick("#goodsSelect", function () {
    var goodsName = $("input[name=goodsName1]").val();

    var url = $().AbsUrlParse("/web/goods/queryDayOffer?goodsName=" + goodsName);
    $("#table").bootstrapTable("refresh", {url: url});
});